import request from '@/utils/request'

// 查询储藏室管理列表
export function listRoom(query) {
  return request({
    url: '/comsys/room/list',
    method: 'get',
    params: query
  })
}

// 查询储藏室管理详细
export function getRoom(storageRoomId) {
  return request({
    url: '/comsys/room/' + storageRoomId,
    method: 'get'
  })
}

// 新增储藏室管理
export function addRoom(data) {
  return request({
    url: '/comsys/room',
    method: 'post',
    data: data
  })
}

// 修改储藏室管理
export function updateRoom(data) {
  return request({
    url: '/comsys/room',
    method: 'put',
    data: data
  })
}

// 删除储藏室管理
export function delRoom(storageRoomId) {
  return request({
    url: '/comsys/room/' + storageRoomId,
    method: 'delete'
  })
}
